package com.woniuxy.cloud.depositassembly.controller;


import com.woniuxy.cloud.api.DepositLevelQueryApi;
import com.woniuxy.cloud.demo.Result;
import com.woniuxy.cloud.depositassembly.service.DepositLevelService;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 周川雄
 * @since 2022-02-11
 */
@RestController
public class DepositLevelAPIImpl implements DepositLevelQueryApi {

    @Resource
    private DepositLevelService depositLevelService;

    @Override
    public Result listDepositLevel() {
        return Result.newInstance().setCode(200).setMsg("所有等级").setData(depositLevelService.list());
    }
}

